/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ems.entity;

import java.math.BigDecimal;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 购物车Entity
 * @author zad
 * @version 2018-01-25
 */
public class EmsCart extends DataEntity<EmsCart> {
	
	private static final long serialVersionUID = 1L;
	private EmsCourse course;			// 课程
	private EmsStudent student ;		// 学员
	private BigDecimal siteDiscount;		// 现场折扣
	private String status;		// 是否启用
	private BigDecimal payMoney;		// 优惠后实付金额
	
	public EmsCart() {
		super();
	}

	public EmsCart(String id){
		super(id);
	}

	public EmsCourse getCourse() {
		return course;
	}

	public void setCourse(EmsCourse course) {
		this.course = course;
	}

	public EmsStudent getStudent() {
		return student;
	}

	public void setStudent(EmsStudent student) {
		this.student = student;
	}

	public BigDecimal getSiteDiscount() {
		return siteDiscount;
	}

	public void setSiteDiscount(BigDecimal siteDiscount) {
		this.siteDiscount = siteDiscount;
	}

	@Length(min=0, max=2, message="是否启用长度必须介于 0 和 2 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public BigDecimal getPayMoney() {
		return payMoney;
	}

	public void setPayMoney(BigDecimal payMoney) {
		this.payMoney = payMoney;
	}
	
}